#ifndef RECORDPCMTHREAD_H
#define RECORDPCMTHREAD_H

#include <QThread>
#include <QDebug>

extern "C" {

    #include <libavutil/avutil.h>
    #include <libavformat/avformat.h>
    #include <libavcodec/avcodec.h>
}

class RecordPCMThread : public QThread
{
    Q_OBJECT
public:
    explicit RecordPCMThread(QObject *parent = nullptr);
    ~RecordPCMThread();
signals:

private:
    void init();
    void run();
    void showSpec(AVFormatContext* context);

};

#endif // RECORDPCMTHREAD_H
